@extends('default.layouts.adminPublic')
@section('title', '正式简历采集列表')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    <link rel="stylesheet" href="{{asset('/vendor/jedate/skin/jedate.css')}}">

    <style>
        .wicon{ background-image:url("");
            background-repeat:no-repeat; background-position:right center; cursor:pointer; }
    </style>
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/resume_list')}}">首页</a> &raquo; 正式简历采集列表
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->

    <div class="con">
        <div class="conMain">
            <div class="result_wrap" style="height:130px;">
                <div class="search">
                    <form name="Formso" id="Formso" action="{{url('admin/formal_resume_list')}}" method="post">
                        {{csrf_field()}}
                        <span>所属用户：</span>
                        @if(count($adminInfo) > 0)
                            <select name="admin_id" id="admin_id">
                                @foreach($adminInfo as $v)
                                    <option value="{{$v->id}}">{{$v->name}}</option>
                                @endforeach
                            </select>
                        @endif
                        <span>添加时间：</span>
                        <input class="wicon" name="start_time" style="width:100px;float: left" id="start_time"
                               value="{{$start_time}}" type="text" readonly>
                        <span style="float: left; margin-right:5px;">~</span>
                        <input class="wicon" name="end_time" style="width:100px;float: left" id="end_time"
                               value="{{$end_time}}" type="text" readonly>
                        <span><input name="submit" class="skeyword" value="搜索" type="submit"></span>
                    </form>
                </div>
                <div class="message"><p>登录有效账号：<strong>{{$resumeCount}}</strong>个</p></div>
                <div class="message"><p>
                        目前共查找到<strong>{{$resume->total()}}</strong>份临时简历！且每页显示条数为{{$resume->perPage()}}
                        条。</p></div>
            </div>
            <div class="manage">
                @include('flash::message')
            </div>
            <div class="conInfo">
                <form name="thisForm" id="thisForm" action="" method="post">
                    {{csrf_field()}}
                    <div class="conList" id="conList">
                        <dl class="one">
                            <dt><input name="selectall" type="checkbox" value="1" onclick="CheckAll(this)"/></dt>
                            <dd class="formal1">姓名</dd>
                            <dd class="formal2">性别</dd>
                            <dd class="formal3">手机号码</dd>
                            <dd class="formal4">寻求职位</dd>
                            <dd class="formal5">登录IP</dd>
                            <dd class="formal6">登录时间</dd>
                            <dd class="formal7">添加时间</dd>
                        </dl>
                        @if($resume->count() > 0 )
                            @foreach($resume as $v)
                                <dl id="list{{$v->id}}">
                                    <dt><input name="selected_id[]" type="checkbox" value="{{$v->id}}"/></dt>
                                    <dd class="formal1"><a href="{{url('resume_'.idEncryption($v->id).'.html')}}"
                                                           target="_blank">{{$v->name}}</a></dd>
                                    <dd class="formal2">{{$v->sex}}</dd>
                                    <dd class="formal3">{{$v->mobile}}</dd>
                                    <dd class="formal4">{{str_limit($v->intentionjobs,30)}}</dd>
                                    <dd class="formal5">{{$v->last_login_ip}}</dd>
                                    <dd class="formal6">{{$v->last_login_time}}</dd>
                                    <dd class="formal7">{{$v->regtime}}</dd>
                                </dl>
                            @endforeach
                        @else
                            <div class="nullcon">对不起！没有符合条件的记录！</div>
                        @endif
                        <dl class="last">
                            <dt>
                                <input name="selectall" id="selectall" type="checkbox" value="1"
                                       onclick="CheckAll(this)"/>
                                <label for="selectall">全选</label>
                            </dt>
                        </dl>
                    </div>
                </form>
                <div class="page_list" style="width: 100%; float: left; margin-top:15px;">
                    {!! $resume->appends($appends)->links() !!}
                </div>
            </div>

            <div class="stopper" style="margin-top:10px; border-top: 1px solid #e5e5e5"></div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/vendor/jedate/jquery.jedate.min.js')}}"></script>

    <script>

        @if(!empty(session('error')))
            layer.ready(function(){
            layer.msg("{{session('error')}}", {time: 1500});
        });
        @endif
        $('#admin_id').val('{{$admin_id}}');
        //蓝色风格
        $.jeDate('#start_time', {
            format: 'YYYY-MM-DD',
            festival: true
        });
        $.jeDate('#end_time', {
            format: 'YYYY-MM-DD',
            festival: true
        });

    </script>
@endsection